const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true
})

module.exports = {
  devServer: {
    port: 7674,
    proxy: {
      '/prod-api': {
        // target:'http://192.168.148.248:1086/',
        // target:'http://172.17.3.47:1086/',
        target: 'https://backstage.appletworks.top/prod-api',
        // target: 'http://houtai.qingzhiya.com/',
        ws: true,
        changeOrigin: true,
        pathRewrite: {'^/prod-api': ''}
      }
    }
  },
  chainWebpack: config => {
      config
      .plugin('html')
      .tap(args => {
          args[0].title = '建设工程机械设备数字化监管系统'
          return args
      })
  },
  // configureWebpack: {
  //     module: {
  //         rules: [
  //             {
  //                 test: /\.(png|jpe?g|gif|pdf)$/i,
  //                 loader: 'file-loader',
  //                 options: {
  //                     name: '[path][name].[ext]',
  //                 },
  //             },
  //         ],
  //     }
  // }
}
